package com.lry.util.requestcore.handler.parse;

import cn.hutool.http.HtmlUtil;
import com.lry.util.requestcore.handler.StringParser;
import java.util.List;
import java.util.Map;

/**
 * @author ALI
 * @since 2023/5/15
 */
public class HtmlParser extends StringParser {

    public static void main(String[] args) {
        String unescape = HtmlUtil.removeHtmlTag(t());
        System.out.println(unescape);
    }

    private static String t() {
        return "<html>\n"
            + "<head><title>CP0502020200 (MapServer)</title>\n"
            + "    <link href=\\\"/arcgis/rest/static/main.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\"/>\n"
            + "</head>\n"
            + "<body>\n"
            + "<table width=\\\"100%\\\" class=\\\"userTable\\\">\n"
            + "    <tr>\n"
            + "        <td class=\\\"titlecell\\\">\\r\\nArcGIS REST Services Directory</td>\n"
            + "        <td align=\\\"right\\\">\n"
            + "            <a href=\\\"/arcgis/rest/login\\\">Login</a>\n"
            + "            |\n"
            + "            <a href=\\\"http://59.255.40.29:6080/arcgis/tokens/\\\">Get Token</a>\n"
            + "        </td>\n"
            + "    </tr>\n"
            + "</table>\n"
            + "<table width=\\\"100%\\\" class=\\\"navTable\\\">\n"
            + "    <tr valign=\\\"top\\\">\n"
            + "        <td class=\\\"breadcrumbs\\\">\n"
            + "            <a href=\\\"/arcgis/rest/services\\\">Home</a>&gt;\n"
            + "            <a href=\\\"/arcgis/rest/services\\\">services</a>&gt;\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer\\\">CP0502020200 (MapServer)</a>\n"
            + "        </td>\n"
            + "        <td align=\\\"right\\\">\n"
            + "            <a href=\\\"http://59.255.40.29:6080/arcgis/sdk/rest/servicesdirectory.html\\\" "
            + "target=\\\"_blank\\\">Help</a>\n"
            + "            |\n"
            + "            <a href=\\\"http://59.255.40"
            + ".29:6080/arcgis/rest/services/CP0502020200/MapServer?f=help\\\" target=\\\"_blank\\\">\n"
            + "                API Reference\n"
            + "            </a>\n"
            + "        </td>\n"
            + "    </tr>\n"
            + "</table>\n"
            + "<table>\n"
            + "    <tr>\n"
            + "        <td class=\\\"apiref\\\">\n"
            + "            <a href=\\\"?f=pjson\\\" target=\\\"_blank\\\">JSON</a>\n"
            + "            |\n"
            + "            <a href=\\\"http://59.255.40"
            + ".29:6080/arcgis/services/CP0502020200/MapServer?wsdl\\\">SOAP</a>\n"
            + "            |\n"
            + "            <a href=\\\"http://59.255.40"
            + ".29:6080/arcgis/services/CP0502020200/MapServer/WMSServer?request=GetCapabilities&service=WMS\\\">\n"
            + "                WMS\n"
            + "            </a>\n"
            + "        </td>\n"
            + "    </tr>\n"
            + "</table>\n"
            + "<h2>CP0502020200 (MapServer)</h2>\n"
            + "<div class=\\\"rbody\\\"><b>View In:</b>&nbsp;&nbsp;<a "
            + "href=\\\"/arcgis/rest/services/CP0502020200/MapServer?f=jsapi\\\"\n"
            + "                                                   target=\\\"_blank\\\">ArcGIS JavaScript\n"
            + "</a>&nbsp;&nbsp;<a\n"
            + "        href=\\\"http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2F59.255.40"
            + ".29%3A6080%2Farcgis%2Frest%2Fservices%2FCP0502020200%2FMapServer&source=sd\\\"\n"
            + "        target=\\\"_blank\\\">ArcGIS.com Map\n"
            + "</a>&nbsp;&nbsp;<a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/kml/mapImage.kmz\\\">Google "
            + "Earth</a>&nbsp;&nbsp;<a\n"
            + "        href=\\\"/arcgis/rest/services/CP0502020200/MapServer?f=lyr&v=9.3\\\" "
            + "target=\\\"_blank\\\">ArcMap\n"
            + "</a>&nbsp;&nbsp;<a href=\\\"/arcgis/rest/services/CP0502020200/MapServer?f=nmf\\\" "
            + "target=\\\"_blank\\\">ArcGIS Explorer</a>\n"
            + "    <br/><br/><b>View Footprint In:</b>&nbsp;&nbsp;<a\n"
            + "            href=\\\"http://www.arcgis.com/home/webmap/viewer.html?featurecollection=http%3A%2F%2F59"
            + ".255.40.29%3A6080%2Farcgis%2Frest%2Fservices%2FCP0502020200%2FMapServer%3Ff%3Djson%26option"
            + "%3Dfootprints&supportsProjection=true&supportsJSONP=true\\\"\n"
            + "            target=\\\"_blank\\\">ArcGIS.com Map\n"
            + "    </a>\n"
            + "    <br/><br/><b>Service Description: </b> <br/><br/><b>Map Name: </b> Layers <br/><br/>\n"
            + "    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/legend\\\">Legend</a>\n"
            + "    <br/><br/>\n"
            + "    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/layers\\\">All Layers and Tables</a>\n"
            + "    <br/><br/><b>Layers: </b>\n"
            + "    <ul>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/0\\\">L06-4,622,333</a>\n"
            + "            (0)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/1\\\">省会</a>\n"
            + "                    (1)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/2\\\">首都</a>\n"
            + "                    (2)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/3\\\">国界</a>\n"
            + "                    (3)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/4\\\">海岸线</a>\n"
            + "                    (4)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/5\\\">国界晕带</a>\n"
            + "                    (5)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/6\\\">400w线状水系</a>\n"
            + "                    (6)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/7\\\">400w面状水系</a>\n"
            + "                    (7)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/8\\\">省界</a>\n"
            + "                    (8)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/9\\\">L05-9,244,667</a>\n"
            + "            (9)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/10\\\">首都</a>\n"
            + "                    (10)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/11\\\">国界</a>\n"
            + "                    (11)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/12\\\">海岸线</a>\n"
            + "                    (12)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/13\\\">国界晕带</a>\n"
            + "                    (13)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/14\\\">省注记简洁版</a>\n"
            + "                    (14)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/15\\\">400w线状水系</a>\n"
            + "                    (15)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/16\\\">400w面状水系</a>\n"
            + "                    (16)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/17\\\">省界</a>\n"
            + "                    (17)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/18\\\">L04-18,489,334</a>\n"
            + "            (18)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/19\\\">首都</a>\n"
            + "                    (19)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/20\\\">国界</a>\n"
            + "                    (20)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/21\\\">海岸线</a>\n"
            + "                    (21)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/22\\\">国界晕带</a>\n"
            + "                    (22)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/23\\\">省注记简洁版</a>\n"
            + "                    (23)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/24\\\">400w线状水系</a>\n"
            + "                    (24)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/25\\\">400w面状水系</a>\n"
            + "                    (25)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/26\\\">省界</a>\n"
            + "                    (26)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/27\\\">L03-36,978,669</a>\n"
            + "            (27)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/28\\\">省注记简洁版</a>\n"
            + "                    (28)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/29\\\">国界</a>\n"
            + "                    (29)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/30\\\">海岸线</a>\n"
            + "                    (30)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/31\\\">国界晕带</a>\n"
            + "                    (31)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/32\\\">400w线状水系</a>\n"
            + "                    (32)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/33\\\">400w面状水系</a>\n"
            + "                    (33)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/34\\\">省界</a>\n"
            + "                    (34)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/35\\\">L02-73,957,338</a>\n"
            + "            (35)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/36\\\">国界</a>\n"
            + "                    (36)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/37\\\">国界晕带</a>\n"
            + "                    (37)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/38\\\">海岸线</a>\n"
            + "                    (38)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/39\\\">400w线状水系</a>\n"
            + "                    (39)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/40\\\">400w面状水系</a>\n"
            + "                    (40)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/41\\\">省界</a>\n"
            + "                    (41)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/42\\\">L01-147,914,677</a>\n"
            + "            (42)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/43\\\">国界</a>\n"
            + "                    (43)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/44\\\">国界晕带</a>\n"
            + "                    (44)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/45\\\">海岸线</a>\n"
            + "                    (45)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/46\\\">省界</a>\n"
            + "                    (46)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/47\\\">L00-295,829,355</a>\n"
            + "            (47)\n"
            + "            <ul>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/48\\\">国界</a>\n"
            + "                    (48)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/49\\\">国界晕带</a>\n"
            + "                    (49)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/50\\\">海岸线</a>\n"
            + "                    (50)\n"
            + "                </li>\n"
            + "                <li>\n"
            + "                    <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/51\\\">省界</a>\n"
            + "                    (51)\n"
            + "                </li>\n"
            + "            </ul>\n"
            + "        </li>\n"
            + "        <li>\n"
            + "            <a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/52\\\">分省山体滑坡和泥石流灾害经济损失2010</a>\n"
            + "            (52)\n"
            + "        </li>\n"
            + "    </ul>\n"
            + "    <b>Description: </b> <br/><br/><b>Copyright Text: </b> <br/> <br/><b>Spatial\n"
            + "        Reference: </b>\\r\\n4326&nbsp;(4326)<br/><br/><br/><b>Single Fused Map Cache: </b> "
            + "false<br/><br/><b>Initial\n"
            + "        Extent: </b>\n"
            + "    <ul>\\r\\nXMin: 38.16486922766862<br/>\\r\\nYMin: 21.16505043635705<br/>\\r\\nXMax: 166"
            + ".7950184660436<br/>\\r\\nYMax:\n"
            + "        72.20448901141657<br/>\\r\\nSpatial Reference: 4326&nbsp;(4326)<br/> <br/></ul>\n"
            + "    <b>Full Extent: </b>\n"
            + "    <ul>\\r\\nXMin: 73.22989792027025<br/>\\r\\nYMin: 3.4084773065018226<br/>\\r\\nXMax: 135"
            + ".35567307373105<br/>\\r\\nYMax:\n"
            + "        53.827718971864556<br/>\\r\\nSpatial Reference: 4326&nbsp;(4326)<br/> <br/></ul>\n"
            + "    <b>Units: </b> esriDecimalDegrees <br/><br/><b>Supported Image Format Types: </b>\n"
            + "    PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP<br/><br/><b>Document Info: </b>\n"
            + "    <ul>\\r\\nTitle: 综合经济特区三大地带<br/>\\r\\nAuthor: cpk-3-shjw<br/>\\r\\nComments: <br/>\\r\\nSubject: "
            + "<br/>\\r\\nCategory:\n"
            + "        <br/>\\r\\nKeywords: <br/>\\r\\nAntialiasingMode: None<br/>\\r\\nTextAntialiasingMode: "
            + "Force<br/></ul>\n"
            + "    <b>Supports Dynamic Layers: </b> false<br/><br/><b>MaxRecordCount: </b> "
            + "1000<br/><br/><b>MaxImageHeight: </b>\n"
            + "    2048<br/><br/><b>MaxImageWidth: </b> 2048<br/><br/><b>Supported Query Formats: </b> JSON, "
            + "AMF<br/><br/><b>Min\n"
            + "        Scale: </b> 0<br/><br/><b>Max Scale: </b> 0<br/><br/><br/><br/><b>Child Resources</b>:&nbsp;"
            + "&nbsp;<a\n"
            + "            href=\\\"/arcgis/rest/services/CP0502020200/MapServer/info\\\">Info\n"
            + "    </a>\n"
            + "    <br/> <br/><b>Supported Operations</b>:&nbsp;&nbsp;<a\n"
            + "            href=\\\"/arcgis/rest/services/CP0502020200/MapServer/export?bbox=38.16486922766862,21"
            + ".16505043635705,166.7950184660436,72.20448901141657\\\">\n"
            + "        Export Map\n"
            + "    </a>&nbsp;&nbsp;<a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/identify\\\">Identify</a"
            + ">&nbsp;&nbsp;<a\n"
            + "            href=\\\"/arcgis/rest/services/CP0502020200/MapServer/find\\\">Find\n"
            + "    </a>&nbsp;&nbsp;<a href=\\\"/arcgis/rest/services/CP0502020200/MapServer?f=pjson&returnUpdates"
            + "=true&\\\">Return\n"
            + "        Updates\n"
            + "    </a>&nbsp;&nbsp;<a href=\\\"/arcgis/rest/services/CP0502020200/MapServer/generateKml\\\">Generate "
            + "KML</a>\n"
            + "</div>\n"
            + "<br/><br/></body>\n"
            + "</html>";
    }

    @Override
    protected Object parserObj(String data) {
        return null;
    }

    @Override
    protected List<Map<String, Object>> parseList(String data) {
        return null;
    }
}
